#include "../src/reactor.hpp"

int main()
{
    bit_net::Socket sock;
    sock.create_client("127.0.0.1", 8500);
    
    std::string req = "POST /login HTTP/1.1\r\n";
    req += "Content-Length: 1024\r\n";
    req += "\r\n";
    req += "name=zhangsan&age=19";
    while(1) {
        sock.send(req.c_str(), req.size());
        char buf[1024] = {0};
        sock.recv(buf, 1023);
        DBG_LOG("%s", buf);
        sleep(10);
    }
    return 0;
}
